# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-asn1-modules
pkgver=0.2.8
pkgrel=2
pkgdesc="A collection of ASN.1-based protocols modules"
url="https://pypi.python.org/pypi/pyasn1-modules"
arch="noarch"
license="BSD-2-Clause"
depends="py3-asn1<0.5.0"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz"
builddir="$srcdir"/pyasn1-modules-$pkgver

replaces="py-asn1-modules" # Backwards compatibility
provides="py-asn1-modules=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="fdfcaa065deffdd732deaa1fa30dec2fc4a90ffe15bd12de40636ce0212f447611096d2f4e652ed786b5c47544439e6a93721fabe121f3320f13965692a1ca5b  pyasn1-modules-0.2.8.tar.gz"
